package com.week2.day04.heroSort;

import com.week2.day04.teamFight.Hero;

import java.util.Arrays;
import java.util.Comparator;

public class Homework2 {
    public static void main(String[] args) {
        HeroComparactor[] heroes = new HeroComparactor[5];
        for (int i = 0; i < heroes.length; i++) {
            heroes[i]=new HeroComparactor();
            Arrays.sort(heroes, new Comparator<HeroComparactor>() {
                @Override
                public int compare(HeroComparactor o1, HeroComparactor o2) {
                    System.out.println("☺");
                    return 0;
                }
            });
        }
    }
}
